package com.mew.slots.core.game.sgj.message;

import com.mew.slots.core.common.messge.response.SlotsBonusPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 *  特殊 有 字段不一致 继承该类  自定义
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class SgjBounsPlayResponseMessage extends SlotsBonusPlayResponseMessage {

    public long winGold; //赢

    public int[] center=new int[0];//中间4个

    public int icon; //外圈结果

    public int bounsTimes; //剩余次数

    public int mult; //倍数

    @Override
    public void write(ByteBuf b) {
        super.write(b);
        writeLong(b,winGold);
        writeInt(b,center.length);
        for (int i : center) {
            writeInt(b,i);
        }
        writeInt(b,icon);
        writeInt(b,bounsTimes);
        writeInt(b,mult);
    }


    @Override
    public SgjBounsPlayResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
